.class public abstract Lcom/nemustech/tiffany/world/TFContentProvider;
.super Lcom/nemustech/tiffany/world/TFItemProvider;
.source "TFContentProvider.java"


# annotations
.annotation system Ldalvik/annotation/Signature;
    value = {
        "<T:",
        "Ljava/lang/Object;",
        ">",
        "Lcom/nemustech/tiffany/world/TFItemProvider",
        "<TT;>;"
    }
.end annotation


# instance fields
.field private TAG:Ljava/lang/String;


# direct methods
.method public constructor <init>()V
    .locals 1

    .prologue
    .line 8
    .local p0, this:Lcom/nemustech/tiffany/world/TFContentProvider;,"Lcom/nemustech/tiffany/world/TFContentProvider<TT;>;"
    invoke-direct {p0}, Lcom/nemustech/tiffany/world/TFItemProvider;-><init>()V

    .line 5
    const-string v0, "TFImageProvider"

    iput-object v0, p0, Lcom/nemustech/tiffany/world/TFContentProvider;->TAG:Ljava/lang/String;

    .line 9
    return-void
.end method


# virtual methods
.method protected abstract applyContent(Lcom/nemustech/tiffany/world/TFObject;I)V
.end method

.method public setItem(Lcom/nemustech/tiffany/world/TFObjectContainer;I)V
    .locals 3
    .parameter "objectContainer"
    .parameter "itemIndex"

    .prologue
    .line 13
    .local p0, this:Lcom/nemustech/tiffany/world/TFContentProvider;,"Lcom/nemustech/tiffany/world/TFContentProvider<TT;>;"
    invoke-virtual {p1}, Lcom/nemustech/tiffany/world/TFObjectContainer;->getObject()Lcom/nemustech/tiffany/world/TFObject;

    move-result-object v2

    if-eqz v2, :cond_0

    invoke-virtual {p0}, Lcom/nemustech/tiffany/world/TFContentProvider;->getItemCount()I

    move-result v2

    if-eqz v2, :cond_0

    .line 14
    invoke-virtual {p1}, Lcom/nemustech/tiffany/world/TFObjectContainer;->getObject()Lcom/nemustech/tiffany/world/TFObject;

    move-result-object v1

    check-cast v1, Lcom/nemustech/tiffany/world/TFModel;

    .line 16
    .local v1, model:Lcom/nemustech/tiffany/world/TFModel;
    invoke-virtual {p0}, Lcom/nemustech/tiffany/world/TFContentProvider;->getItemCount()I

    move-result v2

    rem-int v0, p2, v2

    .line 17
    .local v0, index:I
    invoke-virtual {p1}, Lcom/nemustech/tiffany/world/TFObjectContainer;->getObject()Lcom/nemustech/tiffany/world/TFObject;

    move-result-object v2

    invoke-virtual {p0, v2, v0}, Lcom/nemustech/tiffany/world/TFContentProvider;->applyContent(Lcom/nemustech/tiffany/world/TFObject;I)V

    .line 19
    .end local v0           #index:I
    .end local v1           #model:Lcom/nemustech/tiffany/world/TFModel;
    :cond_0
    return-void
.end method
